﻿using Swimj.CommonLib.Attributes;

namespace DataServer.CommonLib.Models.DataBase
{
    public class DatabaseInfoResponseDto
    {
        public Guid Key { get; set; }

        [TableColumn(DisplayText = "数据库名称")]
        public string? DatabaseName { get; set; }

        [TableColumn(DisplayText = "数据库类型")]
        public string? DriverName { get; set; }

        [TableColumn(DisplayText = "用户名")]
        public string? UserName { get; set; }

        public string? Password { get; set; }

        [TableColumn(DisplayText = "连接串")]
        public string? HostUri { get; set; }

        public string? Port { get; set; }

        [TableColumn(DisplayText = "字符编码")]
        public string? Charset { get; set; }

        public string? Description { get; set; }

        [TableColumn(DisplayText = "排序")]
        public int Sort { get; set; }
    }
}
